package com.hw.ui.upload_data;

import com.hw.base.present.BasePresenter;
import com.hw.bean.AbRelationBean;
import java.util.List;

public class UploadPresent extends BasePresenter<UploadModel, UploadView> implements UploadModel.CallBack {
    public void showlist() {
        model.showl(this);
    }

    public void uploadlist() {
        view.showProgress();
        model.uploadl(this);
    }

    public void deleteCase(final String pid, final String batch,final String casecode) {
        model.delete(pid,batch,casecode,this);
    }

    @Override
    public void onshowl(List<AbRelationBean> list) {
        view.showList(list);
    }

    @Override
    public void onuploadl(String str, List<AbRelationBean> list) {
        view.hideProgress();
        view.showMsg(str);
        view.showList(list);
    }

    @Override
    public void onfail(String str) {
        view.hideProgress();
        view.showMsg(str);
    }
}


